import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable()
class UserInfo{
  String? id;
  String? account;
  String? mobile;
  String? avatar;
  String? nickname;
  String? gender;
  String? birthday;
  String? cityCode;
  String? provinceCode;
  String? profession;
  String? token;

  UserInfo();

  factory UserInfo.fromJson(Map<String,dynamic> json)=>_$UserInfoFromJson(json);

  Map<String,dynamic> toJson()=>_$UserInfoToJson(this);

  @override
  String toString() {
    return 'UserInfo{id: $id, account: $account, mobile: $mobile, avatar: $avatar, nickname: $nickname, gender: $gender, birthday: $birthday, cityCode: $cityCode, provinceCode: $provinceCode, profession: $profession}';
  }
}